$(function() {

	var search = window.location.search
	var arr;
	if(search) {
		search = search.substring(1)
		arr = search.split('=')
		if(arr[0] == 'service') {
			$('.am-nav-tabs li').removeClass('am-active')
			$('.am-nav-tabs li').eq(1).addClass('am-active')
			$('.am-tabs-bd-ofv>div').removeClass('am-active')
			$('.am-tabs-bd-ofv>div').eq(1).addClass('am-active')
		} else if(arr[0] == 'refuel') {
			$('.am-nav-tabs li').removeClass('am-active')
			$('.am-nav-tabs li').eq(2).addClass('am-active')
			$('.am-tabs-bd-ofv>div').removeClass('am-active')
			$('.am-tabs-bd-ofv>div').eq(2).addClass('am-active')
		} else if(arr[0] == 'insure') {
			$('.am-nav-tabs li').removeClass('am-active')
			$('.am-nav-tabs li').eq(3).addClass('am-active')
			$('.am-tabs-bd-ofv>div').removeClass('am-active')
			$('.am-tabs-bd-ofv>div').eq(3).addClass('am-active')
		} else if(arr[0] == 'survey') {
			$('.am-nav-tabs li').removeClass('am-active')
			$('.am-nav-tabs li').eq(4).addClass('am-active')
			$('.am-tabs-bd-ofv>div').removeClass('am-active')
			$('.am-tabs-bd-ofv>div').eq(4).addClass('am-active')
		}
	}
	$('.back').on('click', function() {
		window.history.back();
	})
})